package com.xncoding.websocket.JavaWebSocket;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import java.net.UnknownHostException;

@Configuration
public class SocketServiceConfig {

    @PostConstruct
    public void initWebSocketServer() throws UnknownHostException {
        int port = 8887; // 843 flash policy port

        SocketServer s = new SocketServer(port);
        s.start();
    }
}
